package com.heima.mapper;

import com.github.pagehelper.Page;
import com.heima.pojo.Cooperative;
import com.heima.pojo.vo.PolicyVO;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface CooperativeMapper {
    //查询合作商
    Page<Cooperative> SelectCooperative(String name);
    //新增合作商
    Boolean addCooperative(Cooperative cooperative);
    //获取合作商详细信息
    PolicyVO getCooperative(Long id);
    //修改合作商
    Boolean UpdateCooperative(PolicyVO policyVo, Long id);
    //删除合作商
    @Delete("delete from tb_partner where id = #{id}")
    Boolean deleteCooperative(Long id);
}
